/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package app;

import interfaces.TokenIF;

/**
 *
 * @author Julio
 */
public class Token implements TokenIF{

    private int code;
    private String simbol;
    private int line;
    
    public Token(int code, String simbol, int line){
        this.code   = code;
        this.simbol = simbol;
        this.line = line;
    }
    
    public Token(int code){
        this.code = code;
        this.simbol = Code.getRealDescrition(code);
        this.line = 0;
    }
    
    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getSimbol() {
        return this.simbol;
    }

    public void setSimbol(String simbol) {
        this.simbol = simbol;
    }

    public int getLine() {
        return line;
    }

    public void setLine(int line) {
        this.line = line;
    }
}
